from app.routes.agent import agent_bp
from app.routes.code_mirror import code_mirror_bp
from app.routes.flowchart import flowchart_routes
from app.routes.projects import projects_bp
from app.routes.socket_service import socket_bp


def init_app(app):
    app.register_blueprint(projects_bp, url_prefix="/projects")
    app.register_blueprint(flowchart_routes, url_prefix="/flowchart")
    app.register_blueprint(code_mirror_bp, url_prefix="/code")
    app.register_blueprint(socket_bp, url_prefix="/socket")
    app.register_blueprint(agent_bp, url_prefix="/agent")

# Existing API routes...
